<?php

class CardController extends Controller
{
	public function actionShow(){
	  $uid = Yii::app ()->user->uid;
	  $user = User::model ()->findByAttributes ( array ('email' => 'aaa@aaa.aaa' ) );
		$model=new UserInfoForm;
		if(isset($user)){
		  $model->name=$user->name;
      $model->gender=$user->gender;
      $model->city=$user->city;
      $model->desc=$user->desc;
		}
		$this->renderPartial('show',array('user'=>$model));
		
	}
}